package org.xielei.designpatterns.behavioral.templatemethod;

/**
 * ConcreteSubClass
 *
 * @author xielei
 * @date 2020/8/6
 */
public class ConcreteSubClass extends AbstractHookTemplateMethod {

    @Override
    protected void hookMethod() {
        System.out.println("钩子方法被重写");
    }

    @Override
    protected Boolean hookJudgeMethod() {
        return true;
    }

    @Override
    protected void abstractStartMethod() {
        System.out.println("ConcreteSubClass 抽象开始方法被重写");
    }

    @Override
    protected void abstractEndMethod() {
        System.out.println("ConcreteSubClass 抽象结束方法被重写");
    }
}
